<template>
  <div class="main">
    <div class="heard">
      <div class="heard_row">搭建商资料</div>
      <div class="form_row">
        <el-form
          label-position="left"
          ref="form"
          :model="form"
          label-width="150px"
        >
          <el-form-item label="社会统一信用代码 :">
            <el-input v-model="form.name" ></el-input>
          </el-form-item>
           <el-form-item label="施工单位名称 :">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
           <el-form-item label="报馆负责人姓名 :">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
          <el-form-item label="报馆负责人联系电话 :">
            <el-input v-model="form.name" ></el-input>
          </el-form-item>
           <el-form-item label="值守电工姓名 :">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
           <el-form-item label="值守电工联系电话 :">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
          <el-form-item label="邮箱 :">
            <el-input v-model="form.name" ></el-input>
          </el-form-item>
           <el-form-item label="传真 :">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
              <el-form-item label="营业执照 :">
            <el-upload
              class="avatar-uploader"
              action="#"
              accept=".jpg,.png"
              :on-preview="handlePictureCardPreview"
              :on-change="imgchange"
              :on-remove="handleRemove"
              :on-progress="handelimg"
              :before-upload="handelupload"
            >
              <i class="el-icon-plus avatar-uploader-icon"></i>
              <img
                width="100%"
                class="avatar"
                v-show="dialogImageUrl"
                :src="dialogImageUrl"
                alt
              />
            </el-upload>
          </el-form-item>
        </el-form>
        <el-button type="primary">重新提交审核</el-button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      form: {},
      dialogImageUrl: "",
    };
  },
  methods: {
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    imgchange(file, fileList) {
      this.dialogImageUrl = URL.createObjectURL(file.raw);
      this.imgfile = file.raw;
    },
    handelimg(file, fileList) {
      console.log(file, fileList + "123");
    },
    handelupload(file) {
      console.log(file);
    },
  },
};
</script>
<style scoped>
.heard {
  padding: 40px;
}
.heard_row {
  padding-bottom: 10px;
  border-bottom: 1px solid #d4d4d4;
}
.form_row {
  width: 400px;
  margin-top: 40px;
}
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  border: 1px solid #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
</style>